﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace ABCNet.WithdrawCashs
{
    /// <summary>
    /// 提现申请表
    /// </summary>

    [Table("N_WithdrawCash")]
    public class WithdrawCash : Abp.Domain.Entities.Auditing.AuditedEntity
    {
        /// <summary>
        /// 提现金额
        /// </summary>
        public decimal Amount { get; set; }

        /// <summary>
        /// 提现申请单状态
        /// </summary>
        public WithdrawStates WithdrawState { get; set; }

        /// <summary>
        /// 审核人Id
        /// </summary>
        public long? AuditorId { get; set; }

        /// <summary>
        /// 会计Id
        /// </summary>
        public long? AccountantId { get; set; }

        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? AuditTime { get; set; }

        /// <summary>
        /// 到账时间
        /// </summary>
        public DateTime? PaymentTime { get; set; }
    }
    
    /// <summary>
    /// 提现申请单状态
    /// </summary>
    public enum WithdrawStates
    {
        待审核 = 0,
        待转账 = 1,
        已完成 = 2,
        未通过 = 3
    }

}
